package S05;

public class N02 {
	public static void main(String[] args) {
		Person[]ps= { 
			new Person("张三", 20),
			new Student("李四", 19, "水环学院"),
			new Monitor("王五", 21, "水环学院")
		};
		for(Person p: ps) {
			System.out.println(p.whoami());
		}
	}

}
